/*
 * KKTTFText.h
 *
 *  Created on: 2013-9-15
 *      Author: wanghua
 */

#ifndef KKTTFTEXT_H_
#define KKTTFTEXT_H_

#include "kaka_common.h"
#include "KKNode.h"
#include "XmlUtils.h"

USING_NS_CC;

using namespace std;

class KKTTFText: public KKNode, public CCLabelTTF {
protected:

	KKTTFText();

public:

	virtual ~KKTTFText();

	KKNODE_FACTORY_METHOD(KKTTFText,labelWithElement)
	;

	virtual bool initCommonInfoWithXml(TiXmlElement* element, KKNode* parent);

	virtual bool initDelayInfoWithXml(TiXmlElement* element);

	virtual void saveToXml(TiXmlElement* element);

	virtual void setIsVisible(bool visible) {
		CCLabelTTF::setVisible(visible);

	}
	;
	virtual bool getIsVisible() {
		return CCLabelTTF::isVisible();
	}
	;

};

KKNODE_PARSER_CLASS(KKTTFTextParser, KKTTFText, labelWithElement);
#endif /* KKTTFTEXT_H_ */
